home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / REALITY / atom / light.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.9 KB  |  69 lines

  1. /*
  2.  * Copyright 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /* light.h
  18.  * -------
  19.  *
  20.  * $Revision: 1.5 $
  21.  *
  22.  */
  23.  
  24. #define MAT_GREYPLASTIC        1
  25. #define MAT_CYANPLASTIC        2
  26. #define MAT_REDPLASTIC        3
  27. #define MAT_BLUEPLASTIC        4
  28. #define MAT_YELLOWPLASTIC   5
  29. #define MAT_PINKPLASTIC        6
  30. #define MAT_GREENPLASTIC    7
  31. #define MAT_WHITEPLASTIC    8
  32. #define MAT_BRASS        9
  33. #define MAT_SHINYBRASS        10
  34. #define MAT_PEWTER        11
  35. #define MAT_SILVER        12
  36. #define MAT_GOLD        13
  37. #define MAT_SHINYGOLD        14
  38. #define MAT_PLASTER        15
  39. #define MAT_LAVPOLSTONE        16
  40. #define MAT_BROWNPOLSTONE   17
  41. #define MAT_LAPIS        18
  42. #define MAT_SHINYBRONZE        19
  43. #define MAT_REDRUBBER        20
  44. #define MAT_WALL        21
  45.  
  46. #define MODEL_INFINITE        1
  47. #define MODEL_LOCAL        2
  48.  
  49. #define LIGHT_DEFAULT        1
  50. #define LIGHT_WHITE_INF        2
  51. #define LIGHT_RED_INF        3
  52. #define LIGHT_BLUE_INF        4
  53. #define LIGHT_GREEN_INF        5
  54. #define LIGHT_WHITE_LOCAL   6
  55.  
  56. void DefineMaterials();
  57. void DefineLightModels();
  58. void DefineLights();
  59.  
  60. void SetMaterial();
  61. void ChangeMaterial();
  62. void SetLightModel();
  63. void SetLight();
  64.  
  65. extern float MatGreenprops[], MatRedprops[], MatYellowprops[], 
  66.     MatBlueprops[], MatPinkprops[], MatCyanprops[], MatWhiteprops[], 
  67.     MatGreyprops[];
  68.  
  69.